package com.cgg.stock.client;

import com.cgg.stock.common.pojo.Order;
import com.cgg.stock.common.pojo.TradeOrder;
import com.cgg.stock.common.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient
@RequestMapping("/deal")
public interface DealClient {
    @PostMapping("/dealOrders")
    ResponseData dealOrder(@RequestBody List<TradeOrder> tradeOrders);
}
